package com.example.administrator.testpersionn;

import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import com.jaeger.library.StatusBarUtil;
import com.readystatesoftware.systembartint.SystemBarTintManager;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class SqliteActivity extends AppCompatActivity {

    @BindView(R.id.save)
    Button save;
    @BindView(R.id.look)
    Button look;
    @BindView(R.id.update)
    Button update;
    @BindView(R.id.lookByParam)
    Button lookByParam;
    @BindView(R.id.delete)
    Button delete;
    int index = 0;
    // create our manager instance after the content view is set
    SystemBarTintManager tintManager;
    @BindView(R.id.a)
    ImageView a;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_sqlite);
        ButterKnife.bind(this);
       /* StatusBarUtil.setColor(this, Color.GRAY);*/
        setStatusBar();

    }

    @OnClick({R.id.save, R.id.look, R.id.update, R.id.lookByParam, R.id.delete})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.save:

                StatusBarUtil.setTranslucent(this, 4);

                break;
            case R.id.look:
                StatusBarUtil.setTransparent(this);

                break;
            case R.id.update:
                StatusBarUtil.setTranslucentForImageView(this, 1,a );

                break;
            case R.id.lookByParam:

                break;
            case R.id.delete:

                break;
        }
    }
    protected void setStatusBar() {
        StatusBarUtil.setColor(this, getResources().getColor(R.color.colorAccent));
    }
}
